STEP 7: Let's add another function parameter so we can customize more than just the background!

  • Find the function definition in the code editor: def·draw_card(theme):¬
  • After theme, add a comma followed by color. This is a new function parameter variable.
  • Find the function call in the code editor: draw_card("moon")
  • After "moon", add a comma followed by the string "aqua". This will be the value of color inside the function!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)